export default {
  changeImg(state, payload) {
    state.loginStatus = payload.loginStatus;
  },
  changeInfo(state, payload) {
    state.id = payload.id ? payload.id : '';
    state.userName = payload.userName ? payload.userName : '';
    state.phone = payload.phone ? payload.phone : '';
    state.userImg = payload.userImg ? 'http://' + payload.userImg : '';
  }
};
